package ais.dcproject.service.impl;

import ais.dcproject.dao.LoginDao;
import ais.dcproject.model.User;
import ais.dcproject.service.LoginService;

public class LoginServiceImpl implements LoginService {
	
	private LoginDao loginDao;
	
	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	public User validateLogin(String stuNum, String idCard) {
		User users = loginDao.findUserByLoginInfo(stuNum, idCard);
		
		return users;
	}

}
